package com.hgsoft.pubsv.component.example.controller;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.Date;


import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import com.hgsoft.pubsv.component.apifilter.SecurityParam;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 项目示例
 * 
 * @author saint
 *
 */
@RestController
@RequestMapping(value = { "/api/v1/demo" })
@Slf4j
@Validated
public class DemoController {

	@SecurityParam
	@RequestMapping(value = "/demoPost", method = RequestMethod.POST)
	@ResponseBody
	public String http(String name) {
		log.info("name:{}", name);
		return name;
	}

}
